<template>
	<view class="add">
		<!-- <view :style="{height: getNavBarHeight()+'px'}"></view> -->
		<view class="navbar">
			<view class="left">
				<uni-icons type="calendar" size="30" color="#42b095"></uni-icons>
				<view class="type">居家生活</view>
			</view>
			<view class="right">
				<view class="money">-10.00</view>
			</view>
		</view>
		<view class="body">
			<view class="item">
				<view class="key">账单日期</view>
				<view class="value">2024年07月08日 20:38</view>
			</view>
			<view class="item">
				<view class="key">支付方式</view>
				<view class="value">支付宝</view>
			</view>
			<view class="item">
				<view class="key">备注</view>
				<view class="value">---------</view>
			</view>
			<view class="item">
				<view class="key">标签</view>
				<view class="value">---------</view>
			</view>
			<view class="item">
				<view class="key">附件</view>
				<view class="value">---------</view>
			</view>
			<view class="item">
				<view class="key">不计入收支</view>
				<view class="value">---------</view>
			</view>
			<view class="item">
				<view class="key">不计入预算</view>
				<view class="value">---------</view>
			</view>
			<view class="item">
				<view class="key">所属账本</view>
				<view class="value">---------</view>
			</view>
			<view class="item">
				<view class="key">地点信息</view>
				<view class="value">无</view>
			</view>

		</view>
	</view>
	<view class="footer">
		<view class="backmoney">退款</view>
		<view class="edit">编辑</view>
	</view>
</template>

<script setup>
	import { getNavBarHeight } from '@/utils/system.js'
	import { ref } from "vue"
</script>

<style lang="scss" scoped>
	.add {
		padding: 30rpx;
		background-color: #f2f2f2;
		min-height: 90vh;

		.body {
			border-radius: 15rpx;
			margin: 30rpx 0;
			box-sizing: border-box;
			padding: 30rpx;
			background-color: #fff;
			font-weight: 700;
			font-size: 32rpx;

			.item {
				padding: 30rpx 0;
				display: flex;
				justify-content: space-between;
			}
		}

		.navbar {
			box-sizing: border-box;
			padding: 20rpx 40rpx;
			height: 130rpx;
			width: 100%;
			background-color: #fff;
			border-radius: 15rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.left {
				display: flex;
				align-items: center;

				.type {
					margin-left: 30rpx;
					font-size: 38rpx;
					font-weight: 700;
					line-height: 100rpx;
				}
			}

			.right {
				font-weight: 700;
				font-size: 38rpx;
			}
		}
	}

	.footer {
		position: fixed;
		bottom: 0rpx;
		background-color: #fff;
		height: 150rpx;
		width: 100%;
		box-sizing: border-box;
		padding: 0rpx 50rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.backmoney,
		.edit {
			text-align: center;
			background-color: #47ab93;
			height: 80rpx;
			width: 300rpx;
			line-height: 80rpx;
			border-radius: 15rpx;
			color: #fff;

		}
	}
</style>